<?php
class UserProfile extends GetData{

	private $daten;
	public  $System;
	private $action = array();
	private $ProfileUser = NULL;

	public function __construct($match){
		$this->daten = $match;
	}

	public function getWort(RainTPL $design){	        
		parent::GetData();
		
		if($design->url == '/UserNotFound'){
			exit;
		}
		
		$user = new Db_User;
		if(isset($this->daten['User_Name'])){
		    $this->ProfileUser = $user->GetUserByName($this->daten['User_Name']);
		}
		
		if(!$this->ProfileUser){
			HTTP::redirect(ConfigFile::Get('BASE_DIR').'/UserNotFound');
		}
		
		print_r($design);
		exit;
		    
		$design->assign ('css',"Srelation");
		$design->assign ('js',"jsSrelation");		
		

		if( $cache = $design->cache( $design->ln.'/setting/relation', $expire_time = 0 ) )
	    {
	 	    echo $cache;
	    }
	    else
	    {
	 	    $design->draw( $design->ln.'/setting/relation' );
	    }
	}

}
?>